﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using PropertyManagement.Business.Common;
using PropertyManagement.Domain.Entity;

namespace PropertyManagement.Common.Util
{
    public class CustomerUtil
    {
        public static bool IsCustomerLogedIn
        {
            get
            {
                Customer customer = (Customer)HttpContext.Current.Session[Constant.SESSION_CUSTOMER];
                if (customer != null)
                {
                    return true;
                }
                return false;
            }
        }

        public static Customer LoggedInCustomer
        {
            get
            {
                return (Customer)HttpContext.Current.Session[Constant.SESSION_CUSTOMER];

            }
        }
    }
}
